package com.chinasofti.mydate.myjdk8datetime;

import java.text.ParseException;
import java.time.DayOfWeek;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

public class JKD8DateDemo4 {
    public static void main(String[] args) throws ParseException {
        LocalDateTime localDateTime = LocalDateTime.of(2023,04,23,13,13,40);
        //转化为
       LocalDate localDate = localDateTime.toLocalDate();
        System.out.println("localDate="+localDate);
        //幻化为Localtime
        int localTime = localDateTime.getDayOfMonth();
        System.out.println("localTime="+localTime);

    }
}